package mianshi;

import java.util.Scanner;

/**
 * @author MaoLin Wang
 * @date 2020/10/11 7:26 下午
 */
public class Input {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int group=scanner.nextInt();
        for (int i = 0; i < group; i++) {
            int[] nums=new int[2];
            int index=0;

            while (scanner.hasNextInt()){
                nums[index]=scanner.nextInt();
                index++;
                if (index>=2){
                    System.out.println(nums[0]+nums[1]);
                    break;
                }
            }
        }
    }
}
